package com.tesis.historialmedico;

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.webkit.WebView;



public class ActEncuesta extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.act_encuesta);

		WebView myWebView = (WebView) this.findViewById(R.id.webView1);
		
		SharedPreferences spref = getSharedPreferences("UserRol",
				Context.MODE_PRIVATE);
			
		if(spref.getString("user", "usuario").equals("Prueba de Funcionalidad")){
			myWebView.loadUrl("https://docs.google.com/forms/d/1Mua8dVnKHUrJkTLloqlL-v-F0N-Ul1kKayZO70fRrYY/viewform");
			
		}else{
			myWebView.loadUrl("https://docs.google.com/forms/d/1InHkkcpFlZgFNCywlRv70UOh6zQlLGgt6_NQD0wXo-Y/viewform");
		}
		
		
		
        
		
	}

	
}
